/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: dings
 * Date: 2024-05-18
 * Time: 15:40
 */
public class Test {
    public static void main(String[] args) {
        //实例化内部类对象
        //需要通过外部类引用来实例化
        //1.OutClass outClass = new OutClass();
        //OutClass.InnerClass innerClass = outClass.new InnerClass();
        //
        //2.OutClass.InnerClass innerClass1 = new OutClass().new InnerClass();
        //
        /*OutClass outClass = new OutClass();
        OutClass.InnerClass innerClass = outClass.new InnerClass();


        innerClass.func();*/

       /* OutClass.InnerClass innerClass1 = new OutClass().new InnerClass();
        innerClass1.func();*/
        OutClass.InnerClass innerClass = new OutClass.InnerClass();


        innerClass.func();
    }
}
